package cn.zqgx.moniter.center.lzmedia.controller;

import cn.zqgx.moniter.center.common.core.model.ResponseData;
import cn.zqgx.moniter.center.lzmedia.service.ApiService;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RequestMapping("/index/api")
@RestController
@Validated
@RequiredArgsConstructor
public class ApiController {

    @Resource
    private ApiService apiService;


    /**
     * 测试接口
     * @return
     */
    @ApiOperation(value = "获取api列表")
    @GetMapping("/getApiList")
    @ResponseBody
    public ResponseData getZoneList(){
        ResponseData response = new ResponseData(ResponseData.ResponseState.SUCESS_STATE);
        response.setData(apiService.getAiList());
        return response;
    }




}
